by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

Introduction

Mac or Linux users can now install the D-Laravel alias package from Sublime3's package control.
Through D-Laravel alias, we can execute artisan and composer commands in the container in an easier way.
In the docker environment, do you want to use composer to install the package? You don’t need to enter the container, or set the composer’s ce alias, and you can execute it directly in sublime.

The figure below shows the way of the command line, and the composer command is executed on the host side.

Installation:

1. Execute shift+command+p, and input insall, you can select Install Pacakge.
2. Search for dla and you should be able to find the D-Laravel alias package, press enter to complete the installation.

Hotkey introduction:

1. Custom hotkey
Sublime Text=>Preferences=>Key Bindings, add custom hotkeys to User settings.
[
{ "keys": ["super+alt+i"], "command": "php_artisan"},
{ "keys": ["super+shift+c"], "command": "composer"},
]
2. alt+command+i  Start the php artisan input panel.


3. Shift+command+c, execute composer input panel.


4. Through shift+command+p, you can also quickly find the command to be executed:


D-Laravel right-click menu:
We can also execute the composer and artisan commands in the D-Laravel container through the right-click menu.

Tags: dlaravel

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


dlaravel,docker

D-Laravel learning three stages

Chat about the three stages of using D-Laravel, why use D-Laravel. Because the configuration files used by D-Laravel are quite simple, it is very suitable for beginners of Docker to learn, And users who do not know how to use Docker can also use the two commands ./console and ./create to create a project.

php,docker,dlaravel

A brief introduction to the phpenv container environment I built

I don't have time to shoot an introduction video, so I'll just grab some pictures and introduce the container environment deviny/phpenv I use. https://github.com/DevinY/phpenvphpenv can be regarded as an evolutionary version of my previous D-Laravel open source project, conceptually extending the use of many Dlaravel operation methods. The update of the container tends to be controlled by the user to build his own image, so I am not very good at changing the version number. In fact, the php version number of D-Laravel seems to have not been changed for a long time:p